<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>大客户</title>
    <%@ include file="/WEB-INF/views/common/common.jsp" %>
    <script type="text/javascript" src="/static/js/system/bigcustomer.js"></script>
</head>
<body >
<%--列表--%>
<table id="bigcustomer_datagrid"></table>

<%--列表顶部工具栏--%>
<div id="bigcustomer_toolbar">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="add()">添加</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="opens()">查看学校信息</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" onclick="edit()">编辑</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-lock',plain:true" onclick="lookAll()">查看</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" onclick="cutoff()">删除</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="reload()">刷新</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-lock',plain:true" onclick="changeState()">修改</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-lock',plain:true" onclick="changeFollow()">跟进</a>

    <!--高级查询-->
    姓名/邮箱: <input type="text" class="easyui-textbox" id="keyword" name="keyword" />
    所属学校: <input class="easyui-combobox" id="schoolId"  name="schoolId" data-options="
                                        url:'/dataDict/selsectForSchool?parentId=31',
                                        valueField: 'id',
                                        textField: 'name'
                                       "/>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="squery()">查询</a>
</div>




<div id="colleges_toolbar">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="cadd()">添加</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" onclick="cedit()">编辑</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" onclick="cutoffc()">删除</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="creload()">刷新</a>
</div>

    <%--<!-- 第一个form表单  -->
    <form method="post" id="bigcustomer_form">
    <input type="hidden" name="id"  id="bigid">
    <table align="center" style="margin-top:15px" cellpadding="5" >
        <tr>
            <td>学校名称</td>
            <td><input class="easyui-combobox" name="school.id" data-options="
                                                  url:'/dataDict/selsectForSchool?parentId=31',
                                                  valueField: 'id',
                                                  textField: 'name',
                                                  panelHeight: 'auto'"
            ></td>
            <td>意向学科</td>
            <td><input class="easyui-combobox" name="score.id" data-options="
                                                  url:'/dataDict/selsectForSchool?parentId=13',
                                                  valueField: 'id',
                                                  textField: 'name',
                                                  panelHeight: 'auto'"
            ></td>
        </tr>

        <tr>
        </tr>

            <td>意向程度</td>
            <td><input class="easyui-combobox" name="degree.id" data-options="
                                                      url:'/dataDict/selsectForSchool?parentId=9',
                                                      valueField: 'id',
                                                      textField: 'name',
                                                      panelHeight: 'auto'"
            ></td>

        <td>营销人</td>
        <td><input class="easyui-combobox" name="record.id" data-options="
                                                  url:'/employee/allselect',
                                                  valueField: 'id',
                                                  textField: 'realName',
                                                  panelHeight: 'auto'"
        ></td>

        <tr>

        </tr>
        </tr>
        <td>跟进人</td>
        <td><input class="easyui-combobox" name="deal.id" data-options="
                                                  url:'/employee/allselect',
                                                  valueField: 'id',
                                                  textField: 'realName',
                                                  panelHeight: 'auto'"
        ></td>

        <tr>
            <td>联系人</td>
            <td><input class="easyui-combobox" name="attns.id" data-options="
                                                  url:'/attns/selectByAll',
                                                  valueField: 'id',
                                                  textField: 'name',
                                                  panelHeight: 'auto'"
            ></td>

            <td>优惠</td>
            <td><input class="easyui-textbox" name="pref">

        </tr>
        <tr>
            <td>客户状态:</td>
            <td><input  class="easyui-combobox" name="state" type="text"
                        data-options="data:[{'label': '已签约','value':'1'},{'label': '未签约','value': '0'}],valueField:'value', textField:'label',
                              panelHeight:'auto' ,limitToList:true,groupPosition :'sticky'"/>
            </td>
            <td>跟进状态:</td>
            <td><input  class="easyui-combobox" name="follow" type="text"
                        data-options="data:[{'label': '正在跟进','value':'1'},{'label': '未跟进','value': '0'}],valueField:'value', textField:'label',
                              panelHeight:'auto' ,limitToList:true,groupPosition :'sticky'"/>
            </td>
        </tr>
    </table>
    </form>--%>
<%--保存/编辑 对话框--%>
<!-- 学校信息弹窗 -->

<div id="collegesAdd_dialog">
    <div title="学校信息新增"  style="width: 650px;height:600px;fit:true">
        <form method="post" id="colleges_form">
            <input type="hidden" name="id"  id="cid">
            <table align="center" style="margin-top:15px" cellpadding="5" >
                <tr>

                    <td>学校地址</td>
                    <td><input class="easyui-textbox" name="saddress" data-options="width:120"></td>
                    <td>学校电话</td>
                    <td><input class="easyui-textbox" name="stel" data-options="width:120"></td>
                </tr>

                <tr>
                    <td>学校名称</td>
                    <td><input class="easyui-textbox" name="semail" data-options="width:120"></td>
                    <td>邮政编码</td>
                    <td><input class="easyui-textbox" name="code" data-options="width:120"></td>
                </tr>
                <tr>
                    <td>学校官网</td>
                    <td><input class="easyui-textbox" name="website" data-options="width:120"></td>
                </tr>
                <tr>
                    <td>学生人数</td>
                    <td><input class="easyui-textbox" name="snum" data-options="width:120"></td>
                    <td>IT人数</td>
                    <td><input class="easyui-textbox" name="itnum" data-options="width:120"></td>
                </tr>

                <tr>
                    <td>办学性质</td>
                    <td><input class="easyui-combobox" name="snature.id" data-options="
                                                      url:'/dataDict/selsectForSchool?parentId=143',
                                                      width:120,
                                                      valueField: 'id',
                                                      textField: 'name',
                                                      panelHeight: 'auto'"
                    ></td>

                    <td>规定学历</td>
                    <td><input class="easyui-combobox" name="srecord.id" data-options="
                                                  url:'/dataDict/selsectForSchool?parentId=17',
                                                  width:120,
                                                  valueField: 'id',
                                                  textField: 'name',
                                                  panelHeight: 'auto'"
                    ></td>
                </tr>
                <tr>
                    <td>学校体质</td>
                    <td><input class="easyui-combobox" name="sregime.id" data-options="
                                                      url:'/dataDict/selsectForSchool?parentId=147',
                                                      width:120,
                                                      valueField: 'id',
                                                      textField: 'name',
                                                      panelHeight: 'auto'"
                    ></td>
                </tr>
            </table>
        </form>
    </div>


</div>




<div id="colleges_dialog">
        <table id="colleges_datagrid"></table>

</div>



<div id="bigcustomer_dialog">
        <div id="one" class="easyui-tabs" style="width:650px;height:500px;fit:true">
            <div title="客户信息" style="padding:20px;display:none;">
                <form method="post" id="bigcustomer_form">
                    <input type="hidden" name="id"  id="bigid">
                <table align="center" style="margin-top:15px" cellpadding="5" >
                    <tr>
                        <td>学校名称</td>
                        <td><input class="easyui-combobox" name="school.id" data-options="
                                                  url:'/dataDict/selsectForSchool?parentId=31',
                                                  width:120,
                                                  valueField: 'id',
                                                  textField: 'name',
                                                  panelHeight: 'auto'"

                        ></td>
                        <td>意向学科</td>
                        <td><input class="easyui-combobox" name="score.id" data-options="

                                                  url:'/dataDict/selsectForSchool?parentId=13',
                                                  width:120,
                                                  valueField: 'id',
                                                  textField: 'name',
                                                  panelHeight: 'auto'"
                        ></td>
                    </tr>

                    <tr>
                    </tr>

                    <td>意向程度</td>
                    <td><input class="easyui-combobox" name="degree.id" data-options="
                                                      url:'/dataDict/selsectForSchool?parentId=9',
                                                      width:120,
                                                      valueField: 'id',
                                                      textField: 'name',
                                                      panelHeight: 'auto'"
                    ></td>

                    <td>营销人</td>
                    <td><input class="easyui-combobox" name="record.id" data-options="
                                                  url:'/employee/allselect',
                                                  width:120,
                                                  valueField: 'id',
                                                  textField: 'realName',
                                                  panelHeight: 'auto'"
                    ></td>

                    <tr>

                    </tr>
                    </tr>
                    <td>跟进人</td>
                    <td><input class="easyui-combobox" name="deal.id" data-options="
                                                  url:'/employee/allselect',
                                                  width:120,
                                                  valueField: 'id',
                                                  textField: 'realName',
                                                  panelHeight: 'auto'"
                    ></td>
                   <%-- <td>录入人</td>
                    <td><input class="easyui-combobox" name="marking.id" data-options="
                                                  url:'/employee/allselect',
                                                  width:120,
                                                  valueField: 'id',
                                                  textField: 'realName',
                                                  panelHeight: 'auto'"
                    ></td>--%>

                    <tr>
                        <td>联系人</td>
                        <td><input class="easyui-combobox" name="attns.id" data-options="
                                                  url:'/attns/selectByAll',
                                                  width:120,
                                                  valueField: 'id',
                                                  textField: 'name',
                                                  panelHeight: 'auto'"
                        ></td>

                        <td>优惠</td>
                        <td><input class="easyui-textbox" name="pref" data-options="width:120">

                    </tr>
                    <tr>
                        <td>客户状态:</td>
                        <td><input  class="easyui-combobox" name="state" type="text"
                                    data-options="data:[{'label': '已签约','value':'1'},{'label': '未签约','value': '0'}],valueField:'value', textField:'label',
                              panelHeight:'auto' ,limitToList:true,groupPosition :'sticky',width:120"/>
                        </td>
                        <td>跟进状态:</td>
                        <td><input  class="easyui-combobox" name="follow" type="text"
                                    data-options="data:[{'label': '正在跟进','value':'1'},{'label': '未跟进','value': '0'}],valueField:'value', textField:'label',
                              panelHeight:'auto' ,limitToList:true,groupPosition :'sticky',width:120"/>
                        </td>
                    </tr>
                </table>
                </form>
            </div>
       </div>
</div>

<%--保存/编辑 对话框 底部工具栏 --%>
<div id="dialog_buttons">
    <a href="#"  id="save_linkbutton" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="save()">保存</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" onclick="cancel()">关闭</a>
</div>

<div id="ccdialog_buttons">
    <a href="#"  class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="csave()">保存</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" onclick="cancelco()">关闭</a>
</div>
</body>
</html>